import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    // 考勤点设置
    path: "/",
    name: "mapPositionSet",
    component: () =>
      import("../views/mapSet/mapPositionSet.vue")
  },
    {
        // 反馈记录查询
        path: "/feedbackQuery",
        name: "feedbackQuery",
        component: () =>
            import("../views/feedbackQuery.vue")
    },
  {
    // 登录
    path: "/login",
    name: "login",
    component: () =>
      import("../views/login.vue")
  }
];

const router = new VueRouter({
  mode: "history", //打检车中心包时，使用hash模式
  base: process.env.BASE_URL,
  routes
});

export default router;
